/**
 * @format
 * @Author: TC
 * @Date: 2023-02-17 11:00:25
 * @LastEditTime: 2023-02-17 17:06:28
 * @Description:
 */

import { _decorator } from "cc";
import { app } from "../../FrameWork/App";
import { BaseAdBtn } from "../Component/BaseAdBtn";
import { mEventConst } from "../Const/EventConst";
const { ccclass, property } = _decorator;

@ccclass("AdRelive")
export class AdRelive extends BaseAdBtn {
    protected onAdSucc(): void {
        app.windowMgr.closeWindowsWithout([this.rootNode.name]);
        app.eventMgr.dispatch(mEventConst.GAME_START, 30);
    }
}
